// 页面通用样式
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;

  h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
  }
}

// 用户管理页面
.user-management {
  .ant-table {
    .ant-table-thead > tr > th {
      background: #fafafa;
      font-weight: 600;
    }
  }
}

// 角色管理页面
.role-management {
  .ant-table {
    .ant-table-thead > tr > th {
      background: #fafafa;
      font-weight: 600;
    }
  }
}

// 部门管理页面
.department-management {
  .ant-table {
    .ant-table-thead > tr > th {
      background: #fafafa;
      font-weight: 600;
    }
  }
}

// 模态框样式
.ant-modal {
  .ant-modal-header {
    border-bottom: 1px solid #f0f0f0;
    padding: 16px 24px;
  }

  .ant-modal-body {
    padding: 24px;
  }

  .ant-form-item {
    margin-bottom: 20px;
  }
}

// 表格样式
.ant-table {
  .ant-table-tbody > tr:hover > td {
    background: #f5f5f5;
  }

  .ant-table-pagination {
    margin: 16px 0;
  }
}

// 按钮样式
.ant-btn {
  &.ant-btn-link {
    padding: 4px 8px;
    
    &:hover {
      background: rgba(0, 0, 0, 0.04);
    }
  }
}

// 标签样式
.ant-tag {
  border-radius: 4px;
  font-size: 12px;
  padding: 2px 8px;
}

// 响应式设计
@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;

    h2 {
      font-size: 18px;
    }
  }

  .ant-table {
    .ant-table-thead > tr > th,
    .ant-table-tbody > tr > td {
      padding: 8px 12px;
    }
  }

  .ant-modal {
    width: 90% !important;
    max-width: 500px;
  }
} 